package be.kdg.bombermanunlimited.audio.server;

import java.io.File;
import java.io.FilenameFilter;

public class ExtensionFilter implements FilenameFilter {
	/**
	 * deze filter laat toe om te filteren op bestandsextensie.
	 * 
	 * @author Siegfried
	 */
	private String ext;

	public ExtensionFilter(String ext) {
		this.ext = "." + ext;
	}

	public boolean accept(File dir, String name) {
		return name.endsWith(ext);
	}

}
